package com.mengxuegu.member.service;

import com.mengxuegu.member.base.Result;
import com.mengxuegu.member.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mengxuegu.member.entity.Supplier;
import com.mengxuegu.member.req.GoodsREQ;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 十一捉一
 * @since 2020-12-01
 */
public interface IGoodsService extends IService<Goods> {

    List<Goods> selectBySupplierId(int supplierId);

    Result search(long page, long size, GoodsREQ req);

    Result update(int id, Goods goods);

    Result findById(int id);

    /**
     * 通过mapper实现
     */
    Result findById2(int id);
}
